From: Jonas Dreßler Date: Thu, 30 Jan 2020 14:26:32 +0000 (+0100) Subject: checkbox: Correctly align label X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~90 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0f4aeb265405c9814a76246fbdbd9a00a1b9c2f9;p=gnome-shell.git checkbox: Correctly align label The label needs to be center-aligned vertically so it's positioned in the middle of the surrounding box, not at the top. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/967 --- diff --git a/js/ui/checkBox.js b/js/ui/checkBox.js index 183d719c8..5b3c842a4 100644 --- a/js/ui/checkBox.js +++ b/js/ui/checkBox.js @@ -19,7 +19,7 @@ class CheckBox extends St.Button { this._box = new St.Bin({ y_align: Clutter.ActorAlign.START }); container.add_actor(this._box); - this._label = new St.Label(); + this._label = new St.Label({ y_align: Clutter.ActorAlign.CENTER }); this._label.clutter_text.set_line_wrap(true); this._label.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE); container.add_actor(this._label);